package com.cell.pojo.entity.order;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author cloudJiang
 * @since 2022-06-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_order")
public class Order implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 买方id
     */
    private Long salId;

    /**
     * 卖方id
     */
    private Long buyId;

    /**
     * 逻辑删除字段,0表示不删除，1表示删除
     */
    @TableLogic
    private Integer deleted;

    /**
     * 订单状态表id
     */
    private Long statesId;

    /**
     * 订单细节表id
     */
    private Long detailId;


}
